<!DOCTYPE html>
<html lang="en">

<head>
    <title></title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link href="css/style.css" rel="stylesheet">
    <style>
        p {
            border: medium double black;
        }
        
        p.newclass {
            background-color: grey;
            color: white;
        }
    </style>
</head>

<body>
    <p id="textblock" dir="ltr" lang="en-US">
        There are lots of different kinds of fruit - there are over 500 varieties of <span id="banana">banana</span> alone.
        By the time we add the countless types of <span id="apple">apples</span>,
        <span="orange">oranges</span="orange">, and other well-known fruit, we are faced with thousands of choices.
    </p>
    <button type="button" id="pressme">Press Me</button>
    <script>
        document.getElementById("pressme").onclick = function (e) {
            document.getElementById("textblock").className += " newclass";
        };
    </script>
</body>

</html>